using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN NamThuServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:09/08/2010 12:01:35</para>
	/// <para>Class Name: NamThuServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial  class NamThuServiceBase : INamThuService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:09/08/2010 12:01:35</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: NamThu</para>
		/// <para>Output: NamThuEntity</para>
		///</summary>
		public NamThuEntity SelectOne(Byte NamThu){
			NamThuDAO dao = new NamThuDAO();
			return dao.SelectOne(NamThu);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:09/08/2010 12:01:35</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of NamThuEntity</para>
		///</summary>
		public List<NamThuEntity> SelectAll(){
			NamThuDAO dao = new NamThuDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:09/08/2010 12:01:35</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			NamThuDAO dao = new NamThuDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:09/08/2010 12:01:35</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of NamThuEntity</para>
		///</summary>
		public List<NamThuEntity> SelectAllFilter(string strFilter){
			NamThuDAO dao = new NamThuDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:09/08/2010 12:01:35</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			NamThuDAO dao = new NamThuDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:09/08/2010 12:01:35</para>
		/// <para>Name: Save</para>
		/// <para>Input: NamThuEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(NamThuEntity o){
			NamThuDAO dao = new NamThuDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:09/08/2010 12:01:35</para>
		/// <para>Name: Save</para>
		/// <para>Input: NamThuEntity</para>
		/// <para>Output: NamThuEntity</para>
		///</summary>
		public NamThuEntity SaveRet(NamThuEntity o){
			NamThuDAO dao = new NamThuDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:09/08/2010 12:01:35</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of NamThuEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<NamThuEntity> list){
			NamThuDAO dao = new NamThuDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:09/08/2010 12:01:35</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of NamThuEntity</para>
		/// <para>Output: List of NamThuEntity</para>
		///</summary>
		public List<NamThuEntity> SaveListRet(List<NamThuEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:09/08/2010 12:01:35</para>
		/// <para>Name: Update</para>
		/// <para>Input: NamThuEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(NamThuEntity o){
			NamThuDAO dao = new NamThuDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:09/08/2010 12:01:35</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of NamThuEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<NamThuEntity> list){
			NamThuDAO dao = new NamThuDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:09/08/2010 12:01:35</para>
		/// <para>Name: UpdateNamThu</para>
		/// <para>Input: NewNamThu,NamThu</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateNamThu(Byte NewNamThu,Byte NamThu){
			NamThuDAO dao = new NamThuDAO();
			return dao.UpdateNamThu(NewNamThu,NamThu);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:09/08/2010 12:01:35</para>
		/// <para>Name: UpdateTenNam</para>
		/// <para>Input: NewTenNam,NamThu</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenNam(string NewTenNam,Byte NamThu){
			NamThuDAO dao = new NamThuDAO();
			return dao.UpdateTenNam(NewTenNam,NamThu);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:09/08/2010 12:01:35</para>
		/// <para>Name: Delete</para>
		/// <para>Input: NamThuEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(NamThuEntity o){
			NamThuDAO dao = new NamThuDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:09/08/2010 12:01:35</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: NamThu</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(Byte NamThu){
			NamThuDAO dao = new NamThuDAO();
			return dao.DeleteByID(NamThu);
		}
		#endregion

		#region Select,delete by NamThu functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END NamThuWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

